package com.silverhaze.diamond.client.ui.event;

import com.silverhaze.commons.db.datasource.ObjectEntity;
import com.silverhaze.diamond.common.event.UIEvent;

/**
 * User: Babanin
 * Date: 17.04.11
 * Time: 15:48
 */
public class UIUpdateEntitiesEvent extends UIEvent {
    private Class<? extends ObjectEntity> entityClass;

    public UIUpdateEntitiesEvent(Class<? extends ObjectEntity> entityClass) {
        this.entityClass = entityClass;
    }

    @Override
    public boolean isMergeable() {
        return false;
    }

    @Override
    public void merge(UIEvent event) {
    }

    @Override
    public boolean canMergeWith(UIEvent event) {
        return false;
    }

    @Override
    public Class<? extends ObjectEntity> getChangedEntityClass() {
        return entityClass;
    }

    @Override
    public String toString() {
        return null;
    }
}
